<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        table {
            width: 1000px;
            margin: 100px auto;
            border-collapse: collapse;
        }

        td {
            border: 1px solid black;
            height: 50px;
            line-height: 50px;
            text-align: center;
            background-color: rgb(82, 191, 255);
        }
    </style>
</head>

<body>
    <table>
        <caption>
            <h1>九九乘法表</h1>
        </caption>
        <script>
            for (let i = 1; i <= 9; i++) {
                document.write(`<tr>`)
                for (let j = 1; j <= i; j++) {
                    document.write(`<td>${j}*${i}=${j * i}</td>`)
                }
                document.write(`<tr>`)
            }
        </script>
    </table>
</body>

</html>